#include <REGX52.H>
#include <INTRINS.H>
void Delay1ms(unsigned int x)		//@11.0592MHz
{
	int i=0;
	for(i=0;i<x;i++)
	{
		unsigned char i, j;
	_nop_();
	i = 2;
	j = 199;
	do
	{
		while (--j);
	} while (--i);
	}
	
}

void main()
{
	int xms=100;
	while(1)
	{
		P1=0xfe;
		Delay1ms(xms);
		P1=0xfd;
		Delay1ms(xms);
		P1=0xfb;
		Delay1ms(xms);
		P1=0xf7;
		Delay1ms(xms);
		P1=0xef;
		Delay1ms(xms);
		P1=0xdf;
		Delay1ms(xms);
		P1=0xbf;
		Delay1ms(xms);
		P1=0x7f;
		Delay1ms(xms);
	}
}